<template>
  <div>
    <h2>投放详细</h2>
    <el-table :data="formData">
      <el-table-column label="投放区域">
        <template #default="scope">
          <div>
            {{ optionsMap[scope.row.name] }}
          </div>
        </template>
      </el-table-column>
      <el-table-column label="投放责任人">
        <template #default="scope">
          <div>
            <el-input v-model="scope.row.details.duty"/>
          </div>
        </template>
      </el-table-column>
      </el-table> 
  </div>
</template>

<script setup>
const props = defineProps({
  formData: {
    type: Array,
    default: () => []
  },
  optionsMap: {
    type: Object,
    default: () => ({})
  }
})
</script>

<style scoped>

</style>